<template>
  <div id="app" ref="main">
    <router-view></router-view>
  </div>
</template>

<script>


  export default {
    name: 'App',
    components: {
    },
    watch: {
      '$route': function(){
        window.pageYOffset = 0
        document.body.scrollTop = 0
        document.documentElement.scrollTop = 0
      }
    }
  }

</script>

<style>

  html,body,#app{
    width: 100%;
    height: 100%;
  }

</style>
